<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:sec="http://www.springframework.org/security/facelets/tags">
<ui:composition>
	<h:form id="menuForm">
		<p:menubar rendered="#{sec:ifAnyGranted('ROLE_ADMIN,ROLE_USER')}" widgetVar="menuWidget">
			<p:submenu label="Usuário" icon="ui-icon-document" url="/private/admin/usuario" rendered="#{sec:ifAnyGranted('ROLE_ADMIN')}"  />
			<p:submenu label="Avaliação" icon="ui-icon-document" url="/avaliacao" rendered="#{sec:ifAnyGranted('ROLE_ADMIN,ROLE_USER')}" />
			<p:submenu icon="ui-icon-power" action="#{loginBean.logout}" value="Sair"  rendered="#{sec:ifAnyGranted('ROLE_ADMIN,ROLE_USER')}" />
		</p:menubar>
	</h:form>
</ui:composition>
</html>
